﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FourierTransformPlugin
{
    public partial class FFTStatusForm : Form
    {
        public FFTStatusForm()
        {
            InitializeComponent();
        }

        public void SetStatus(string text)
        {
            statusLabel.Text = text;
        }

        public void SetProgress(int val, int max)
        {
            progressBar.Maximum = max;
            progressBar.Value = val;
        }

        public delegate void NotifyEvent();
        public event NotifyEvent Cancelled;

        private void cancelButton_Click(object sender, EventArgs e)
        {
            if (Cancelled != null)
                Cancelled();
            DialogResult = DialogResult.Cancel;
            Hide();
        }
    }
}
